fix(macos): 避免 Keychain 授权弹窗重复出现 - #990
Merged
H-Chris233 merged 1 commit intoAug 23, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
解决 macOS 启动读取安全凭据时,系统连续弹出两次 Keychain 授权的问题。
修复 / 新增 / 改进
credentials.v1Keychain 条目,避免 manifest 与 chunk 分别触发一次系统授权。兼容
测试计划
CARGO_NET_GIT_FETCH_WITH_CLI=true CARGO_TARGET_DIR=/tmp/openless-keychain-pr-target cargo test --manifest-path openless-all/app/src-tauri/Cargo.toml --lib keyring_payload_ -- --nocapturemigrated macOS credentials from manifest + 1 chunk(s) to one Keychain entry;主条目可读,credentials.v1.chunk.0已不存在。git diff --check通过。cargo fmt -- --check:上游beta已存在与本 PR 无关的格式差异(包括build.rs、Android 模块及credentials.rs:3261);本 PR 未扩大这些差异。~/Library/Logs/OpenLess/openless.log(2026-08-23 10:43:40.808969)。